Return nil from more ERC response handlers
authorF. Jason Park <jp@neverwas.me>
Mon, 20 May 2024 06:04:49 +0000 (23:04 -0700)
committerF. Jason Park <jp@neverwas.me>
Mon, 27 May 2024 23:39:18 +0000 (16:39 -0700)
commit8c54a79ec10d21cfc961476d85db06b643260e38
tree22dcef447b4e801a989a007231ac41bc42fa343d
parent1a9128e0208d60f414401679d76f3722fa4085fd
Return nil from more ERC response handlers

* etc/ERC-NEWS: Mention that certain aberrant response handlers now
return nil.
* lisp/erc/erc-backend.el (define-erc-response-handler): Mention that
body should explicitly return nil.
(erc-server-PART)
(erc-server-PING): Return nil.
* lisp/erc/erc-sasl.el (erc-sasl--destroy): Return nil.
* lisp/erc/erc.el (erc-display-message): Mention in doc string that
the return value is undefined.
(erc-kill-channel-hook): Fix package-version.
* test/lisp/erc/erc-networks-tests.el (erc-networks--set-name): Ensure
`erc--route-insertion' returns nil because this influences whether
response-handler hooks continue running.
* test/lisp/erc/erc-sasl-tests.el
(erc-sasl-create-client-ecdsa): Fix regression that made test
unusable, although it's still relatively useless and therefore skipped
by default.
* test/lisp/erc/erc-services-tests.el
(erc-services-tests--auth-source-standard)
(erc-services-tests--auth-source-announced): Clarify annotations.
* test/lisp/erc/erc-tests.el (erc-message): Don't return non-nil in
mocked `erc-display-message'.
(erc-send-modify-hook): Shadow `erc-send-modify-hook' because
`erc-stamp--date-mode' modifies it locally.
etc/ERC-NEWS
lisp/erc/erc-backend.el
lisp/erc/erc-sasl.el
lisp/erc/erc.el
test/lisp/erc/erc-networks-tests.el
test/lisp/erc/erc-sasl-tests.el
test/lisp/erc/erc-services-tests.el
test/lisp/erc/erc-tests.el